<?php

namespace app\admin\model\staff;

use think\Model;


class Achievements extends Model
{

    

    

    // 表名
    protected $name = 'staff_achievements';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;

    // 定义时间戳字段名
    protected $createTime = false;
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];







    public function getTagList(){
        return ['1' => __('Q1'), '2' => __('Q2'), '3' => __('Q3'), '4' => __('Q4')];
    }


    public function staff()
    {
        return $this->belongsTo('app\admin\model\Staff', 'staff_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}
